package com.ruoyi.thirdpart.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 地图 逆地理解析
 * 
 * @author ruoyi
 */
public class MapLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 详细地址 */
    private String formattedAddress;

    /** 此点坐标x值 */
    private String lon;

    /** 此点坐标y值 */
    private String lat;

    /** 省份 */
    private String province;

    /** 省份编号 */
    private String provinceCode;

    /** 市级名称 */
    private String city;

    /** 市级编号 */
    private String cityCode;

    /** 县级编号 */
    private String countyCode;

    /** 县级名称 */
    private String county;

    /** 街道/镇编号 */
    private String townCode;

    /** 街道/镇名称 */
    private String town;

    /** 距离此点最近的路 */
    private String road;

    public String getFormattedAddress()
    {
        return formattedAddress;
    }

    public void setFormattedAddress(String formattedAddress)
    {
        this.formattedAddress = formattedAddress;
    }

    public String getLon()
    {
        return lon;
    }

    public void setLon(String lon)
    {
        this.lon = lon;
    }

    public String getLat()
    {
        return lat;
    }

    public void setLat(String lat)
    {
        this.lat = lat;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getProvinceCode()
    {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode)
    {
        this.provinceCode = provinceCode;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCityCode()
    {
        return cityCode;
    }

    public void setCityCode(String cityCode)
    {
        this.cityCode = cityCode;
    }

    public String getCounty()
    {
        return county;
    }

    public void setCounty(String county)
    {
        this.county = county;
    }

    public String getCountyCode()
    {
        return countyCode;
    }

    public void setCountyCode(String countyCode)
    {
        this.countyCode = countyCode;
    }

    public String getTown()
    {
        return town;
    }

    public void setTown(String town)
    {
        this.town = town;
    }

    public String getTownCode()
    {
        return townCode;
    }

    public void setTownCode(String townCode)
    {
        this.townCode = townCode;
    }

    public String getRoad()
    {
        return road;
    }

    public void setRoad(String road)
    {
        this.road = road;
    }
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("formattedAddress", getFormattedAddress())
            .append("lon", getLon())
            .append("lat", getLat())
            .append("province", getProvince())
            .append("provinceCode", getProvinceCode())
            .append("city", getCity())
            .append("cityCode", getCityCode())
            .append("county", getCounty())
            .append("countyCode", getCountyCode())
            .append("town", getTown())
            .append("townCode", getTownCode())
            .append("road", getRoad())
            .toString();
    }
}
